//
//  WrongQuesListManager.m
//  听说弱点强化训练
//
//  Created by 盛超 on 2018/8/23.
//  Copyright © 2018年 盛超. All rights reserved.
//

#import "WrongQuesListManager.h"

@implementation WrongQuesListManager

- (NSString *)requestUrl {
    return @"api/ZXYYTS/W_ZXYYTS_GetWrongQueList";
}

- (void)requestWithCompltionSuccess:(void(^)(ModelWrongQuesList *model))success
                            failuer:(void(^)(NSString *error)) failure {
    [self requestGetMethodWithSuccess:^(id responseObject) {
        
        NSDictionary *dict = [NSJSONSerialization JSONObjectWithData:responseObject options:NSJSONReadingAllowFragments error:nil];
        NSLog(@"%@",[NSObject objectToJson:dict]);
        ModelWrongQuesList *list = [ModelWrongQuesList yy_modelWithDictionary:dict];
        success(list);
        
    } Failure:^(NSError *error) {
        
        failure(error.localizedDescription);
        
    }];
}

@end


